package demo5;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-06-01
 * Time: 13:27
 */
public class Dog extends Animal{

    public Dog(String name, int age) {
        super(name, age);
    }

    public void bark(){
        System.out.println(this.name + "在旺旺叫...");
    }

    public void eat(){
        System.out.println(this.name + "在吃狗粮");
    }
}
